package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduChapter;
import com.atguigu.eduservice.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 课程 服务类
 * @author atguigu
 * @since 2021-12-07
 */
public interface EduChapterService extends IService<EduChapter> {


    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章节
     * @param chapterId 章节id
     * @return 删除结果
     */
    Boolean deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     * @param courseId 课程id
     */
    void removeChapterByCourseId(String courseId);

}
